<?php
/**
 * Stubs for PECL/rrd extension
 * Description taken from official documenation
 * @link     http://php.net/manual/en/book.rrd.php
 * @author   Olegs Capligins <shader@dautkom.lv>
 */

// start of PECL/rrd v1.0

/**
*<div id="function.rrd-error" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_error</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_error</span> &mdash; <span class="dc-title">Gets latest error message</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-error-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">string</span> <span class="methodname" style="color:#CC7832"><strong>rrd_error</strong></span>     ( <span class="methodparam">void</span>    )</div>    <p class="para rdfs-comment">    Returns latest global rrd error message.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-error-parameters">   <h3 class="title">参数</h3>   <span>此函数没有参数。</span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-error-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    Latest error message.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return string Latest error message.*/
function rrd_error() {}

/**
*<div id="function.rrd-create" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_create</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_create</span> &mdash; <span class="dc-title">Creates rrd database file</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-create-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>rrd_create</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$filename</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">array</span> <span class="parameter" style="color:#2EACF9">$options</span></span>    )</div>    <p class="para rdfs-comment">    Creates the rdd database file.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-create-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">filename</span></dt>      <dd>       <span>       Filename for newly created rrd file.      </span>     </dd>              <dt> <span class="parameter" style="color:#2EACF9">options</span></dt>      <dd>       <p class="para">       Options for rrd create - list of strings. See man page of rrd create       for whole list of options.      </p>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-create-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    成功时返回 <strong><span>TRUE</span></strong>， 或者在失败时返回 <strong><span>FALSE</span></strong>。   </p>  </div>  <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return bool TRUE on success or FALSE on failure.*/
function rrd_create($filename, $options) {}

/**
*<div id="function.rrd-fetch" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_fetch</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_fetch</span> &mdash; <span class="dc-title">Fetch the data for graph as array</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-fetch-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">array</span> <span class="methodname" style="color:#CC7832"><strong>rrd_fetch</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$filename</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">array</span> <span class="parameter" style="color:#2EACF9">$options</span></span>    )</div>    <p class="para rdfs-comment">    Gets data for graph output from RRD database file as array. This function    has same result as <span class="function">{@link rrd_graph()}</span>,  but fetched data are    returned as array, no image file is created.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-fetch-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">filename</span></dt>      <dd>       <span>       RRD database file name.      </span>     </dd>              <dt> <span class="parameter" style="color:#2EACF9">options</span></dt>      <dd>       <p class="para">       Array of options for resolution specification.      </p>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-fetch-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    Returns information about retrieved graph data.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return array Array with information about retrieved graph data.*/
function rrd_fetch($filename, $options) {}

/**
*<div id="function.rrd-first" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_first</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_first</span> &mdash; <span class="dc-title">Gets the timestamp of the first sample from rrd file</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-first-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">int</span> <span class="methodname" style="color:#CC7832"><strong>rrd_first</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$file</span></span>    [, <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$raaindex</span><span class="initializer"> = 0</span></span>   ] )</div>    <p class="para rdfs-comment">    Returns the first data sample from the specified RRA of the RRD file.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-first-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">file</span></dt>      <dd>       <span>       RRD database file name.      </span>     </dd>              <dt> <span class="parameter" style="color:#2EACF9">raaindex</span></dt>      <dd>       <p class="para">       The index number of the RRA that is to be examined. Default value is 0.      </p>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-first-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    Integer number of unix timestamp, <strong><span>FALSE</span></strong> if some error occurs.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return int Integer as unix timestamp, FALSE if some error occurs.*/
function rrd_first($file, $raaindex = 0) {}

/**
*<div id="function.rrd-graph" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_graph</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_graph</span> &mdash; <span class="dc-title">Creates image from a data</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-graph-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">array</span> <span class="methodname" style="color:#CC7832"><strong>rrd_graph</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$filename</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">array</span> <span class="parameter" style="color:#2EACF9">$options</span></span>    )</div>    <p class="para rdfs-comment">    Creates image for a particular data from RRD file.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-graph-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">filename</span></dt>      <dd>       <span>       The filename to output the graph to. This will generally end in either       <em>.png</em>, <em>.svg</em> or       <em>.eps</em>, depending on the format you want to output.      </span>     </dd>              <dt> <span class="parameter" style="color:#2EACF9">options</span></dt>      <dd>       <p class="para">       Options for generating image. See man page of rrd graph for all       possible options. All options (data definitions, variable defintions, etc.)       are allowed.      </p>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-graph-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    Array with information about generated image is returned, <strong><span>FALSE</span></strong> when error    occurs.   </p>  </div>  <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return array If image is created successfully an array with information about generated image is returned, FALSE when error occurs.*/
function rrd_graph($filename, $options) {}

/**
*<div id="function.rrd-info" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_info</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_info</span> &mdash; <span class="dc-title">Gets information about rrd file</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-info-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">array</span> <span class="methodname" style="color:#CC7832"><strong>rrd_info</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$filename</span></span>    )</div>    <p class="para rdfs-comment">    Returns information about particular RRD database file.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-info-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">file</span></dt>      <dd>       <span>       RRD database file name.      </span>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-info-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    Array with information about requsted RRD file, <strong><span>FALSE</span></strong> when error occurs.   </p>  </div>    <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return array Array with information about requsted RRD file, FALSE when error occurs.*/
function rrd_info($filename) {}

/**
*<div id="function.rrd-last" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_last</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_last</span> &mdash; <span class="dc-title">Gets unix timestamp of the last sample</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-last-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">int</span> <span class="methodname" style="color:#CC7832"><strong>rrd_last</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$filename</span></span>    )</div>    <p class="para rdfs-comment">    Returns the UNIX timestamp of the most recent update of the RRD database.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-last-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">filename</span></dt>      <dd>       <span>       RRD database file name.      </span>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-last-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    Integer as unix timestamp of the most recent data from the RRD database.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return int Integer as unix timestamp of the most recent data from the RRD database.*/
function rrd_last($filename) {}

/**
*<div id="function.rrd-lastupdate" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_lastupdate</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_lastupdate</span> &mdash; <span class="dc-title">Gets information about last updated data</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-lastupdate-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">array</span> <span class="methodname" style="color:#CC7832"><strong>rrd_lastupdate</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$filename</span></span>    )</div>    <p class="para rdfs-comment">    Gets array of the UNIX timestamp and the values stored for each date in the    most recent update of the RRD database file.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-lastupdate-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">file</span></dt>      <dd>       <span>       RRD database file name.      </span>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-lastupdate-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    Array of information about last update, <strong><span>FALSE</span></strong> when error occurs.   </p>  </div>  <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return array Array of information about last update, FALSE when error occurs.*/
function rrd_lastupdate($filename) {}

/**
*<div id="function.rrd-restore" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_restore</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_restore</span> &mdash; <span class="dc-title">Restores the RRD file from XML dump</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-restore-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>rrd_restore</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$xml_file</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$rrd_file</span></span>    [, <span class="methodparam"><span class="type" style="color:#EAB766">array</span> <span class="parameter" style="color:#2EACF9">$options</span></span>   ] )</div>    <p class="para rdfs-comment">    Restores the RRD file from the XML dump.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-restore-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">xml_file</span></dt>      <dd>       <span>       XML filename with the dump of the original RRD database file.      </span>     </dd>              <dt> <span class="parameter" style="color:#2EACF9">rrd_file</span></dt>      <dd>       <p class="para">       Restored RRD database file name.      </p>     </dd>              <dt> <span class="parameter" style="color:#2EACF9">options</span></dt>      <dd>       <p class="para">       Array of options for restoring. See man page for rrd restore.      </p>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-restore-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">   Returns <strong><span>TRUE</span></strong> on success, <strong><span>FALSE</span></strong> otherwise.   </p>  </div>  <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return bool Returns TRUE on success, FALSE otherwise.*/
function rrd_restore($xml_file, $rrd_file, $options = array()) {}

/**
*<div id="function.rrd-tune" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_tune</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_tune</span> &mdash; <span class="dc-title">Tunes some RRD database file header options</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-tune-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>rrd_tune</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$filename</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">array</span> <span class="parameter" style="color:#2EACF9">$options</span></span>    )</div>    <p class="para rdfs-comment">    Change some options in the RRD dabase header file. E.g. renames the source for    the data etc.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-tune-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">filename</span></dt>      <dd>       <span>       RRD database file name.      </span>     </dd>              <dt> <span class="parameter" style="color:#2EACF9">options</span></dt>      <dd>       <p class="para">       Options with RRD database file properties which will be changed. See       rrd tune man page for details.      </p>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-tune-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    Returns <strong><span>TRUE</span></strong> on success, <strong><span>FALSE</span></strong> otherwise.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return bool Returns TRUE on success, FALSE otherwise.*/
function rrd_tune($filename, $options) {}

/**
*<div id="function.rrd-update" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_update</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_update</span> &mdash; <span class="dc-title">Updates the RRD database</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-update-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>rrd_update</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$filename</span></span>    , <span class="methodparam"><span class="type" style="color:#EAB766">array</span> <span class="parameter" style="color:#2EACF9">$options</span></span>    )</div>    <p class="para rdfs-comment">    Updates the RRD database file. The input data is time interpolated according to the    properties of the RRD database file.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-update-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">filename</span></dt>      <dd>       <span>       RRD database file name. This database will be updated.      </span>     </dd>              <dt> <span class="parameter" style="color:#2EACF9">options</span></dt>      <dd>       <p class="para">       Options for updating the RRD database. This is list of strings. See man page of rrd update       for whole list of options.      </p>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-update-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    Returns <strong><span>TRUE</span></strong> on success, <strong><span>FALSE</span></strong> when error occurs.   </p>  </div>  <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return bool Updates the RRD database file. The input data is time interpolated according to the properties of the RRD database file.*/
function rrd_update($filename, $options) {}

/**
*<div id="function.rrd-version" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_version</h1>   <p class="verinfo">(PECL rrd &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">rrd_version</span> &mdash; <span class="dc-title">Gets information about underlying rrdtool library</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-version-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">string</span> <span class="methodname" style="color:#CC7832"><strong>rrd_version</strong></span>     ( <span class="methodparam">void</span>    )</div>    <p class="para rdfs-comment">    Returns information about underlying rrdtool library.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-version-parameters">   <h3 class="title">参数</h3>   <span>此函数没有参数。</span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-version-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    String with rrdtool version number e.g. &quot;1.4.3&quot;.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return string String with rrdtool version number e.g. "1.4.3".*/
function rrd_version() {}

/**
*<div id="function.rrd-xport" class="refentry">  <div class="refnamediv">   <h1 class="refname">rrd_xport</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">rrd_xport</span> &mdash; <span class="dc-title">Exports the information about RRD database</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-function.rrd-xport-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="type" style="color:#EAB766">array</span> <span class="methodname" style="color:#CC7832"><strong>rrd_xport</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">array</span> <span class="parameter" style="color:#2EACF9">$options</span></span>    )</div>    <p class="para rdfs-comment">    Exports the information about RRD database file. This data can be converted    to XML file via user space PHP script and then restored back as RRD database    file.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-function.rrd-xport-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">options</span></dt>      <dd>       <span>       Array of options for the export, see rrd xport man page.      </span>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-function.rrd-xport-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    Array with information about RRD database file, <strong><span>FALSE</span></strong> when error occurs.   </p>  </div>   <div class="up"><a href="http://php.net/manual/zh/ref.rrd.php">RRD 函数</a></div></div>
 * @return array Array with information about RRD database file, FALSE when error occurs.*/
function rrd_xport($options) {}

/**
 * Close any outstanding connection to rrd caching daemon <p>
 * This function is automatically called when the whole PHP process is terminated. It depends on used SAPI. For example, it's called automatically at the end of command line script.</p><p>
 * It's up user whether he wants to call this function at the end of every request or otherwise.</p>
 * @link http://php.net/manual/en/function.rrdc-disconnect.php
 * @return void
 * @since PECL rrd >= 1.1.2
 */
function rrd_disconnect() {}

/**
*<div id="class.rrdcreator" class="reference">  <h1 class="title">The RRDCreator class</h1>     <div class="partintro"><p class="verinfo">(PECL rrd &gt;= 0.9.0)</p>     <div class="section" id="rrdcreator.intro">    <h2 class="title">简介</h2>    <p class="para">     Class for creation of RRD database file.    </p>   </div>     <div class="section" id="rrdcreator.synopsis">    <h2 class="title">类摘要</h2>      <div class="classsynopsis">     <div class="ooclass"></div>       <div class="classsynopsisinfo">      <span class="ooclass">       <strong class="classname">RRDCreator</strong>      </span>      {</div>       <div class="classsynopsisinfo classsynopsisinfo_comment">// 方法 </div>     <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="type" style="color:#EAB766">void</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/rrdcreator.addarchive.php" class="methodname" style="color:#CC7832">addArchive</a></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$description</span></span>    )</div> <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="type" style="color:#EAB766">void</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/rrdcreator.adddatasource.php" class="methodname" style="color:#CC7832">addDataSource</a></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$description</span></span>    )</div> <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/rrdcreator.construct.php" class="methodname" style="color:#CC7832">__construct</a></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$path</span></span>    [, <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$startTime</span></span>    [, <span class="methodparam"><span class="type" style="color:#EAB766">int</span> <span class="parameter" style="color:#2EACF9">$step</span><span class="initializer"> = 0</span></span>   ]] )</div> <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/rrdcreator.save.php" class="methodname" style="color:#CC7832">save</a></span>     ( <span class="methodparam">void</span>    )</div>     }</div>     </div>   </div>                                 <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li>{@link RRDCreator::addArchive} — Adds RRA - archive of data values for each data source</li><li>{@link RRDCreator::addDataSource} — Adds data source definition for RRD database</li><li>{@link RRDCreator::__construct} — Creates new RRDCreator instance</li><li>{@link RRDCreator::save} — Saves the RRD database to a file</li></ul> <div class="up"><a href="http://php.net/manual/zh/book.rrd.php">RRD</a></div></div>
*/
class RRDCreator {

/**
*<div id="rrdcreator.addarchive" class="refentry">  <div class="refnamediv">   <h1 class="refname">RRDCreator::addArchive</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">RRDCreator::addArchive</span> &mdash; <span class="dc-title">Adds RRA - archive of data values for each data source</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-rrdcreator.addarchive-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="type" style="color:#EAB766"><span class="type void" style="color:#EAB766">void</span></span> <span class="methodname" style="color:#CC7832"><strong>RRDCreator::addArchive</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$description</span></span>    )</div>    <p class="para rdfs-comment">    Adds RRA definition by description of archive. Archive consists  of a    number of data values or statistics for each of the defined data-sources (DS).    Data sources are defined by method <span class="methodname" style="color:#CC7832">{@link RRDCreator::addDataSource()}</span>.    You need call this method for each requested archive.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-rrdcreator.addarchive-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">description</span></dt>      <dd>       <span>       Definition of archive - RRA. This has same format as RRA definition in       rrd create command. See man page of rrd create for more details.      </span>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-rrdcreator.addarchive-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    没有返回值。   </p>  </div>  <div class="up"><a href="http://php.net/manual/zh/class.rrdcreator.php">RRDCreator</a></div></div>
     * @return void*/
    public function addArchive($description) {}

/**
*<div id="rrdcreator.adddatasource" class="refentry">  <div class="refnamediv">   <h1 class="refname">RRDCreator::addDataSource</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">RRDCreator::addDataSource</span> &mdash; <span class="dc-title">Adds data source definition for RRD database</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-rrdcreator.adddatasource-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="type" style="color:#EAB766"><span class="type void" style="color:#EAB766">void</span></span> <span class="methodname" style="color:#CC7832"><strong>RRDCreator::addDataSource</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$description</span></span>    )</div>    <p class="para rdfs-comment">    RRD can accept input from several data sources (DS), e.g incoming and outgoing    traffic. This method adds data source by description. You need call    this method for each data source.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-rrdcreator.adddatasource-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">description</span></dt>      <dd>       <span>       Definition of data source - DS. This has same format as DS definition in       rrd create command. See man page of rrd create for more details.      </span>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-rrdcreator.adddatasource-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    没有返回值。   </p>  </div>  <div class="up"><a href="http://php.net/manual/zh/class.rrdcreator.php">RRDCreator</a></div></div>
     * @return void*/
    public function addDataSource($description) {}

    /**
     * Creates new RRDCreator instance.
     * @link http://php.net/manual/en/rrdcreator.construct.php
     * @param string $path <p>
     * Path for newly created RRD database file.
     * </p>
     * @param string $startTime <p>
     * Time for the first value in RRD database. Parameter supports all formats which are supported by rrd create call.
     * </p>
     * @param int $step <p>
     * Base interval in seconds with which data will be fed into the RRD database.
     * </p>
     * @return RRDCreator
     * @since PECL rrd >= 0.9.0
     */
    public function __construct($path, $startTime='', $step=0) {}

/**
*<div id="rrdcreator.save" class="refentry">  <div class="refnamediv">   <h1 class="refname">RRDCreator::save</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">RRDCreator::save</span> &mdash; <span class="dc-title">Saves the RRD database to a file</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-rrdcreator.save-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>RRDCreator::save</strong></span>     ( <span class="methodparam">void</span>    )</div>    <p class="para rdfs-comment">    Saves the RRD database into file, which name is defined by <span class="methodname" style="color:#CC7832">{@link RRDCreator::__construct()}</span>.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-rrdcreator.save-parameters">   <h3 class="title">参数</h3>   <span>此函数没有参数。</span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-rrdcreator.save-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    成功时返回 <strong><span>TRUE</span></strong>， 或者在失败时返回 <strong><span>FALSE</span></strong>。   </p>  </div>  <div class="up"><a href="http://php.net/manual/zh/class.rrdcreator.php">RRDCreator</a></div></div>
     * @return bool TRUE on success or FALSE on failure.*/
    public function save() {}

}

/**
*<div id="class.rrdgraph" class="reference">   <h1 class="title">The RRDGraph class</h1>     <div class="partintro"><p class="verinfo">(PECL rrd &gt;= 0.9.0)</p>     <div class="section" id="rrdgraph.intro">    <h2 class="title">简介</h2>    <p class="para">     Class for exporting data from RRD database to image file.    </p>   </div>     <div class="section" id="rrdgraph.synopsis">    <h2 class="title">类摘要</h2>      <div class="classsynopsis">     <div class="ooclass"></div>       <div class="classsynopsisinfo">      <span class="ooclass">       <strong class="classname">RRDGraph</strong>      </span>      {</div>       <div class="classsynopsisinfo classsynopsisinfo_comment">// 方法 </div>     <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/rrdgraph.construct.php" class="methodname" style="color:#CC7832">__construct</a></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$path</span></span>    )</div> <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="type" style="color:#EAB766">array</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/rrdgraph.save.php" class="methodname" style="color:#CC7832">save</a></span>     ( <span class="methodparam">void</span>    )</div> <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="type" style="color:#EAB766">array</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/rrdgraph.saveverbose.php" class="methodname" style="color:#CC7832">saveVerbose</a></span>     ( <span class="methodparam">void</span>    )</div> <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="type" style="color:#EAB766">void</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/rrdgraph.setoptions.php" class="methodname" style="color:#CC7832">setOptions</a></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">array</span> <span class="parameter" style="color:#2EACF9">$options</span></span>    )</div>     }</div>     </div>   </div>                                 <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li>{@link RRDGraph::__construct} — Creates new RRDGraph instance</li><li>{@link RRDGraph::save} — Saves the result of query into image</li><li>{@link RRDGraph::saveVerbose} — Saves the RRD database query into image and returns the verbose    information about generated graph</li><li>{@link RRDGraph::setOptions} — Sets the options for rrd graph export</li></ul> <div class="up"><a href="http://php.net/manual/zh/book.rrd.php">RRD</a></div></div>
*/
class RRDGraph {

    /**
     * Creates new RRDGraph instance. This instance is responsible for rendering the result of RRD database query into image.
     * @link http://php.net/manual/en/rrdgraph.construct.php
     * @param string $path <p>
     * Full path for the newly created image.
     * </p>
     * @return RRDGraph
     * @since PECL rrd >= 0.9.0
     */
    public function __construct($path) {}

/**
*<div id="rrdgraph.save" class="refentry">  <div class="refnamediv">   <h1 class="refname">RRDGraph::save</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">RRDGraph::save</span> &mdash; <span class="dc-title">Saves the result of query into image</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-rrdgraph.save-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="type" style="color:#EAB766">array</span> <span class="methodname" style="color:#CC7832"><strong>RRDGraph::save</strong></span>     ( <span class="methodparam">void</span>    )</div>    <p class="para rdfs-comment">    Saves the result of RRD database query into image defined by    <span class="methodname" style="color:#CC7832">{@link RRDGraph::__construct()}</span>.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-rrdgraph.save-parameters">   <h3 class="title">参数</h3>   <span>此函数没有参数。</span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-rrdgraph.save-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    Array with information about generated image is returned, <strong><span>FALSE</span></strong> if error    occurs.   </p>  </div>  <div class="up"><a href="http://php.net/manual/zh/class.rrdgraph.php">RRDGraph</a></div></div>
     * @return array Array with information about generated image is returned, FALSE if error occurs.*/
    public function save() {}

/**
*<div id="rrdgraph.saveverbose" class="refentry">  <div class="refnamediv">   <h1 class="refname">RRDGraph::saveVerbose</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">RRDGraph::saveVerbose</span> &mdash; <span class="dc-title">Saves the RRD database query into image and returns the verbose    information about generated graph   </span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-rrdgraph.saveverbose-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="type" style="color:#EAB766">array</span> <span class="methodname" style="color:#CC7832"><strong>RRDGraph::saveVerbose</strong></span>     ( <span class="methodparam">void</span>    )</div>    <p class="para rdfs-comment">    Saves the RRD database query into image file defined by method <span class="methodname" style="color:#CC7832">{@link RRDGraph::__construct()}</span>    and returns the verbose information about generated graph, if &quot;-&quot; is used as image    filename, image data are also returned in result array.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-rrdgraph.saveverbose-parameters">   <h3 class="title">参数</h3>   <span>此函数没有参数。</span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-rrdgraph.saveverbose-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    Array with detailed information about generated image is returned, optionally    with image data, <strong><span>FALSE</span></strong> if error occurs.   </p>  </div>  <div class="up"><a href="http://php.net/manual/zh/class.rrdgraph.php">RRDGraph</a></div></div>
     * @return array Array with detailed information about generated image is returned, optionally with image data, FALSE if error occurs.*/
    public function saveVerbose() {}

/**
*<div id="rrdgraph.setoptions" class="refentry">  <div class="refnamediv">   <h1 class="refname">RRDGraph::setOptions</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">RRDGraph::setOptions</span> &mdash; <span class="dc-title">Sets the options for rrd graph export</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-rrdgraph.setoptions-description">   <h3 class="title">说明</h3>   <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="type" style="color:#EAB766"><span class="type void" style="color:#EAB766">void</span></span> <span class="methodname" style="color:#CC7832"><strong>RRDGraph::setOptions</strong></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">array</span> <span class="parameter" style="color:#2EACF9">$options</span></span>    )</div>    <p class="para rdfs-comment">    </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-rrdgraph.setoptions-parameters">   <h3 class="title">参数</h3>   <dl>          <dt> <span class="parameter" style="color:#2EACF9">options</span></dt>      <dd>       <span>       List of options for the image generation from the RRD database file. It can       be list of strings or list of strings with keys for better readability. Read       the rrd graph man pages for list of available options.      </span>     </dd>        </dl>   </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-rrdgraph.setoptions-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    没有返回值。     </p>  </div>     <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 examples" id="refsect1-rrdgraph.setoptions-examples">   <h3 class="title">范例</h3>   <span>    <div class="example" id="example-5504">     <p><strong>Example #1 <span class="methodname" style="color:#CC7832"><strong>RRDGraph::setOptions()</strong></span> example</strong></p>     <div class="example-contents"> <div class="phpcode" style="border-color:gray;background:#232525"><span><span style="color: #000000"> <span style="color: #9876AA">&lt;?php<br />$graphObj</span><span style="color: #007700">-&gt;</span><span style="color: #9876AA">setOptions</span><span style="color: #007700">(array(<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--start"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"920804400"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--end"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #9876AA">920808000</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--vertical-label"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"m/s"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"DEF:myspeed=</span><span style="color: #9876AA">$rrdFile</span><span style="color: #DD0000">:speed:AVERAGE"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"CDEF:realspeed=myspeed,1000,*"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"LINE2:realspeed#FF0000"<br /></span><span style="color: #007700">));<br /></span><span style="color: #9876AA">?&gt;</span> </span> </span></div>     </div>     </div>     <div class="example" id="example-5505">     <p><strong>Example #2 Set multiple color options</strong></p>     <div class="example-contents"> <div class="phpcode" style="border-color:gray;background:#232525"><span><span style="color: #000000"> <span style="color: #9876AA">&lt;?php<br />$graphObj</span><span style="color: #007700">-&gt;</span><span style="color: #9876AA">setOptions</span><span style="color: #007700">(array(<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--start"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"920804400"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--end"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #9876AA">920808000</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--vertical-label"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"m/s"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--color=BACK#00000000"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--color=GRID#00000000"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--color=MGRID#00000000"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"DEF:myspeed=</span><span style="color: #9876AA">$rrdFile</span><span style="color: #DD0000">:speed:AVERAGE"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"CDEF:realspeed=myspeed,1000,*"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"LINE2:realspeed#FF0000"<br /></span><span style="color: #007700">));<br /></span><span style="color: #9876AA">?&gt;</span> </span> </span></div>     </div>      <div class="example-contents"><p>      Don&#039;t use key value syntax for same rrd option. It looks more readable, but      it doesn&#039;t work.     </p></div>     <div class="example-contents"> <div class="phpcode" style="border-color:gray;background:#232525"><span><span style="color: #000000"> <span style="color: #9876AA">&lt;?php<br />$graphObj</span><span style="color: #007700">-&gt;</span><span style="color: #9876AA">setOptions</span><span style="color: #007700">(array(<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--color"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"BACK#00000000"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--color"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"GRID#00000000"</span><span style="color: #007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--color"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"MGRID#00000000"<br /></span><span style="color: #007700">));<br /></span><span style="color: #9876AA">?&gt;</span> </span> </span></div>     </div>      <div class="example-contents"><p>      In nature of php it&#039;s same as     </p></div>     <div class="example-contents"> <div class="phpcode" style="border-color:gray;background:#232525"><span><span style="color: #000000"> <span style="color: #9876AA">&lt;?php<br />$graphObj</span><span style="color: #007700">-&gt;</span><span style="color: #9876AA">setOptions</span><span style="color: #007700">(array(<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"--color"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"MGRID#00000000"<br /></span><span style="color: #007700">));<br /></span><span style="color: #9876AA">?&gt;</span> </span> </span></div>     </div>     </div>   </span>  </div>  <div class="up"><a href="http://php.net/manual/zh/class.rrdgraph.php">RRDGraph</a></div></div>
     * @return void*/
    public function setOptions($options) {}

}

/**
*<div id="class.rrdupdater" class="reference">   <h1 class="title">The RRDUpdater class</h1>     <div class="partintro"><p class="verinfo">(PECL rrd &gt;= 0.9.0)</p>     <div class="section" id="rrdupdater.intro">    <h2 class="title">简介</h2>    <p class="para">     Class for updating RDD database file.    </p>   </div>     <div class="section" id="rrdupdater.synopsis">    <h2 class="title">类摘要</h2>      <div class="classsynopsis">     <div class="ooclass"></div>       <div class="classsynopsisinfo">      <span class="ooclass">       <strong class="classname">RRDUpdater</strong>      </span>      {</div>       <div class="classsynopsisinfo classsynopsisinfo_comment">// 方法 </div>     <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">    <span class="modifier">public</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/rrdupdater.construct.php" class="methodname" style="color:#CC7832">__construct</a></span>     ( <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$path</span></span>    )</div> <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">     <span class="modifier">public</span> <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><a href="http://php.net/manual/zh/rrdupdater.update.php" class="methodname" style="color:#CC7832">update</a></span>      ( <span class="methodparam"><span class="type" style="color:#EAB766">array</span> <span class="parameter" style="color:#2EACF9">$values</span></span>     [, <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$time</span>      <span class="initializer"> = time()</span>     </span>    ] )</div>     }</div>     </div>   </div>                   <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li>{@link RRDUpdater::__construct} — Creates new RRDUpdater instance</li><li>{@link RRDUpdater::update} — Update the RRD database file</li></ul> <div class="up"><a href="http://php.net/manual/zh/book.rrd.php">RRD</a></div></div>
*/
class RRDUpdater {

    /**
     * Creates new RRDUpdater instance. This instance is responsible for updating the RRD database file.
     * RRDUpdater constructor.
     * @link http://php.net/manual/en/rrdupdater.construct.php
     * @param string $path <p>
     * Filesystem path for RRD database file, which will be updated.
     * </p>
     * @return RRDUpdater
     * @since PECL rrd >= 0.9.0
     */
    public function __construct($path) {}

/**
*<div id="rrdupdater.update" class="refentry">  <div class="refnamediv">   <h1 class="refname">RRDUpdater::update</h1>   <p class="verinfo">(PECL rrd &gt;= 0.9.0)</p><p class="refpurpose"><span class="refname">RRDUpdater::update</span> &mdash; <span class="dc-title">Update the RRD database file</span></p>   </div>   <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 description" id="refsect1-rrdupdater.update-description">   <h3 class="title">说明</h3>    <div class="methodsynopsis dc-description" style="border:1px gray;padding-left:5px;background:#232525">     <span class="modifier">public</span> <span class="type" style="color:#EAB766">bool</span> <span class="methodname" style="color:#CC7832"><strong>RRDUpdater::update</strong></span>      ( <span class="methodparam"><span class="type" style="color:#EAB766">array</span> <span class="parameter" style="color:#2EACF9">$values</span></span>     [, <span class="methodparam"><span class="type" style="color:#EAB766">string</span> <span class="parameter" style="color:#2EACF9">$time</span>      <span class="initializer"> = time()</span>     </span>    ] )</div>    <p class="para rdfs-comment">    Updates the RRD file defined via <span class="methodname" style="color:#CC7832">{@link RRDUpdater::__construct()}</span>.    The file is updated with a specific values.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 parameters" id="refsect1-rrdupdater.update-parameters">   <h3 class="title">参数</h3>   <span>    <dl>            <dt> <span class="parameter" style="color:#2EACF9">values</span></dt>       <dd>        <p class="para">        Data for update. Key is data source name.       </p>      </dd>                 <dt> <span class="parameter" style="color:#2EACF9">time</span></dt>       <dd>        <p class="para">        Time value for updating the RRD with a particulat data. Default value        is current time.       </p>      </dd>          </dl>    </span>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 returnvalues" id="refsect1-rrdupdater.update-returnvalues">   <h3 class="title">返回值</h3>   <p class="para">    成功时返回 <strong><span>TRUE</span></strong>， 或者在失败时返回 <strong><span>FALSE</span></strong>。   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 errors" id="refsect1-rrdupdater.update-errors">   <h3 class="title">错误／异常</h3>   <p class="para">    Throws a <a href="http://php.net/manual/zh/class.exception.php" class="classname">Exception</a> on error.   </p>  </div>    <br></br><div style="BORDER-TOP: gray 1px dashed; OVERFLOW: hidden; HEIGHT: 1px"></div><div class="refsect1 examples" id="refsect1-rrdupdater.update-examples">   <h3 class="title">范例</h3>   <span>    <div class="example" id="example-5506">     <p><strong>Example #1 <span class="methodname" style="color:#CC7832"><strong>RRDUpdater::update()</strong></span> examples</strong></p>     <div class="example-contents"> <div class="phpcode" style="border-color:gray;background:#232525"><span><span style="color: #000000"> <span style="color: #9876AA">&lt;?php<br />$updator&nbsp;</span><span style="color: #007700">=&nbsp;new&nbsp;</span><span style="color: #9876AA">RRDUpdater</span><span style="color: #007700">(</span><span style="color: #DD0000">"speed.rrd"</span><span style="color: #007700">);<br /></span><span style="color: #FF8000">//updates&nbsp;the&nbsp;data&nbsp;source&nbsp;"speed"&nbsp;with&nbsp;value&nbsp;"12411"<br />//for&nbsp;time&nbsp;defined&nbsp;by&nbsp;timestamp&nbsp;"920807700"<br /></span><span style="color: #9876AA">$updator</span><span style="color: #007700">-&gt;</span><span style="color: #9876AA">update</span><span style="color: #007700">(array(</span><span style="color: #DD0000">"speed"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"12411"</span><span style="color: #007700">),&nbsp;</span><span style="color: #DD0000">"920807700"</span><span style="color: #007700">);<br /></span><span style="color: #9876AA">?&gt;</span> </span> </span></div>     </div>     </div>   </span>  </div>  <div class="up"><a href="http://php.net/manual/zh/class.rrdupdater.php">RRDUpdater</a></div></div>
     * @return bool TRUE on success or FALSE on failure.*/
    public function update($values, $time='') {}

}

// end of PECL/rrd v1.0
